
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'dnp_welcome_controller.dart';

class DnpWelcomeDisWidget extends StatelessWidget {
  const DnpWelcomeDisWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: SafeArea(
        child: SingleChildScrollView(
          physics: NeverScrollableScrollPhysics(),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              SizedBox(height:36),
              Padding(
                padding: const EdgeInsets.only(left: 18,right: 18),
                child: Text(
                  'Quick loan \ndisbursement',
                  style: TextStyle(
                      fontSize: 40,
                      fontWeight: FontWeight.w900,
                      color: Color(0xFF252630)
                  ),
                ),
              ),
              SizedBox(height: 12),
              Padding(
                padding: const EdgeInsets.only(left: 18,right: 18),
                child: Text(
                  'You can get multiple personal loans just by \npassing the certification',
                  style: TextStyle(
                    fontSize: 14,
                    fontWeight: FontWeight.w500,
                    color: Color(0xFF999999),
                  ),
                ),
              ),
              SizedBox(height: 20),
              Container(
                width: 163,
                height: 50,
                margin: const EdgeInsets.only(left: 18,right: 18),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  image: DecorationImage(
                    image: AssetImage('assets/images/welcome_dis_button.webp'),
                    fit: BoxFit.cover,
                  ),
                ),
                child: GestureDetector(
                  onTap: (){
                    Get.find<DnpWelcomeController>().disClick();
                  },
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: [
                      Text(
                        'Next step',
                        style: TextStyle(
                          fontSize: 16,
                          fontWeight: FontWeight.w600,
                          color: Color(0xFFFFFFFF),
                        ),
                      ),
                      SizedBox(width: 8),
                      Image.asset(
                        'assets/images/welcome_dis_arrow.webp',
                        width: 16,
                        height: 16,),

                    ],
                  ),
                ),
              ),
              SizedBox(height: 30),
              Image.asset(
                'assets/images/welcome_dis_bg.webp',
                fit: BoxFit.fill,
              ),
            ],
          ),
        ),
      ),
    );
  }
}
